.class Lcom/xingbook/ui/b/c;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcom/xingbook/ui/b/a;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/ui/b/c;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 10

    const/4 v7, 0x1

    const/4 v8, 0x0

    iget-object v0, p0, Lcom/xingbook/ui/b/c;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/xingbook/ui/b/a;

    if-nez v2, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-boolean v0, v2, Lcom/xingbook/ui/b/a;->l:Z

    if-nez v0, :cond_0

    iget v4, p1, Landroid/os/Message;->arg1:I

    invoke-virtual {v2, v4}, Lcom/xingbook/ui/b/a;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Lcom/xingbook/ui/a/c;

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    iget-object v5, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v5, Lcn/a/a/d/i;

    invoke-virtual {v5}, Lcn/a/a/d/i;->g()Lcom/xingbook/anima/d;

    move-result-object v6

    if-eqz v3, :cond_0

    invoke-virtual {v3}, Lcom/xingbook/ui/a/c;->getVisibility()I

    move-result v0

    const/16 v1, 0x8

    if-ne v0, v1, :cond_2

    const/4 v0, 0x4

    invoke-virtual {v3, v0}, Lcom/xingbook/ui/a/c;->setVisibility(I)V

    :cond_2
    invoke-virtual {v5}, Lcn/a/a/d/i;->d()Landroid/view/animation/Animation;

    move-result-object v9

    new-instance v0, Lcom/xingbook/ui/b/d;

    move-object v1, p0

    invoke-direct/range {v0 .. v6}, Lcom/xingbook/ui/b/d;-><init>(Lcom/xingbook/ui/b/c;Lcom/xingbook/ui/b/a;Lcom/xingbook/ui/a/c;ILcn/a/a/d/i;Lcom/xingbook/anima/d;)V

    invoke-virtual {v9, v0}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    invoke-virtual {v3}, Lcom/xingbook/ui/a/c;->getBaseItem()Lcn/a/a/b/b;

    move-result-object v0

    invoke-virtual {v0}, Lcn/a/a/b/b;->i()I

    move-result v0

    invoke-virtual {v3}, Lcom/xingbook/ui/a/c;->getBaseItem()Lcn/a/a/b/b;

    move-result-object v1

    invoke-virtual {v1}, Lcn/a/a/b/b;->j()I

    move-result v1

    invoke-virtual {v2, v0, v1, v7}, Lcom/xingbook/ui/b/a;->b(III)V

    invoke-virtual {v5}, Lcn/a/a/d/i;->d()Landroid/view/animation/Animation;

    move-result-object v0

    invoke-virtual {v3, v0}, Lcom/xingbook/ui/a/c;->startAnimation(Landroid/view/animation/Animation;)V

    invoke-virtual {v3}, Lcom/xingbook/ui/a/c;->getVisibility()I

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {v3, v8}, Lcom/xingbook/ui/a/c;->setVisibility(I)V

    goto :goto_0

    :pswitch_1
    instance-of v0, v3, Lcom/xingbook/ui/a/ac;

    if-eqz v0, :cond_0

    check-cast v3, Lcom/xingbook/ui/a/ac;

    iget v0, p1, Landroid/os/Message;->arg2:I

    if-ne v0, v7, :cond_3

    move v0, v7

    :goto_1
    invoke-interface {v3, v0}, Lcom/xingbook/ui/a/ac;->a(Z)V

    goto :goto_0

    :cond_3
    move v0, v8

    goto :goto_1

    :pswitch_2
    const/16 v0, 0xc

    iget v1, p1, Landroid/os/Message;->arg2:I

    invoke-virtual {v2, v4, v0, v8, v1}, Lcom/xingbook/ui/b/a;->a(IIII)Z

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x10
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method
